

package com.scs.application.modules.settlement.dto;

import com.scs.application.modules.settlement.vo.BillItemVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * 开票单实体对象
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ToString(callSuper = true)
@Accessors(chain = true)
public class InvoiceBuildDTO implements Serializable {
    /**
     * 院方ID
     */
    @NotBlank(message = "院方ID不能为空")
    private String hospitalId;


    /**
     * 分组条件
     */
    @NotBlank(message = "分组条件不能为空")
    private String groupType;

    /**
     * 开票单汇总明细
     */
    @NotNull(message = "开票单汇总明细至少有1条")
    @Size(min = 1, message = "开票单汇总明细至少有1条")
    private List<BillItemVO> items;
}
